﻿using Inovout.Gui.Wpf.ViewModels;
using System.Windows.Input;

namespace Inovout.Security.Gui.Wpf.ViewModels
{
    public class UserViewModel : ModelViewModel<User>
    {

        public string Name
        {
            get { return base.Model.Name; }
            set
            {
                base.Model.Name = value;
                RaisePropertyChanged<string>(() => Model.Name);
            }
        }
        public string Password
        {
            get { return base.Model.Password; }
            set
            {
                base.Model.Password = value;
                RaisePropertyChanged<string>(() => Model.Password);
            }
        }
        private string confirmPassword;
        public string ConfirmPassword
        {
            get { return confirmPassword; }
            set
            {
                confirmPassword = value;
                RaisePropertyChanged("ConfirmPassword");
            }
        }

        public ICommand SignInCommand
        {
            get;
            set;
        }
        public ICommand RegisterCommand
        {
            get;
            set;
        }
    }
}
